Skip to content

feat: make openFilePicker function return a promise, add detection of picker cancellation#108

Open
MrKampla wants to merge 1 commit into
masterfrom
promise
Open

feat: make openFilePicker function return a promise, add detection of picker cancellation#108
MrKampla wants to merge 1 commit into
masterfrom
promise

Conversation

@MrKampla

@MrKampla MrKampla commented Aug 8, 2025

Copy link
Copy Markdown
Collaborator

Summary:

Adds a new prop called "detectCancellation" that can be set to "promiseResultOnly", "promiseResultAndHookState" or false. Allows to define if the cancellation detection should be shown and when (only in the result type or also in hook state). Default is false because in most use cases we don't care about the cancelled selections.

@vercel

vercel Bot commented Aug 8, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
use-file-picker ❌ Failed (Inspect) Aug 8, 2025 5:22pm

@MrKampla MrKampla requested a review from Jaaneek August 8, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant